import os

all_files = []


def list_files(dir, level):
    for file in os.listdir(dir):
        filepath = os.path.join(dir, file)
        is_dir = os.path.isdir(filepath)
        if is_dir:
            list_files(filepath, level + 1)
        all_files.append("{}{} {}".format(" " * level, "📁" if is_dir else "📄", file))


list_files(os.getcwd(), 0)
for file in all_files:
    print(file)
